﻿@model SoftHotel.Models.Servicio

@{
    ViewBag.Title = "Editar Servicio";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Servicio</legend>
 <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;">
	<tbody> 

    <tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;"> Nombre:</td>
		<td >@Html.EditorFor(model => model.nombre)</td>
        <td style="font-weight: bold;"> Sede:</td>
		<td>@Html.DropDownListFor(model => model.idSede,(SelectList)ViewBag.listSedes)
            @Html.ValidationMessageFor(model => model.idSede)</td>
	</tr>
	<tr>	
		<td style="width: 20px;"></td>
        <td style="font-weight: bold;"> Estado:</td>
		<td>@Html.DropDownListFor(model => model.estado,
                new[]
                {
                    new SelectListItem{ Value = "1", Text = "Activo" },
                    new SelectListItem{ Value = "0", Text = "Inactivo" }
                })
        </td>
        <td>@Html.HiddenFor(model=>model.idServicio)</td>
		<td>@Html.HiddenFor(model=>model.fechaRegistro) @Html.HiddenFor(model=>model.fechaActivacion)</td>	
</tbody></table>

    </fieldset><div  style="float:left">
            <input type="submit" value="Guardar" />
    </div>
}
@using (Html.BeginForm("Index", "Servicio", FormMethod.Get))
{    <input type="submit" name="regresar" value="Regresar" />
}
